package com.wg.msshopcar.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("shopcar")
@NoArgsConstructor // 无参构造
@AllArgsConstructor // 有参构造
@Schema(description = "购物车表")
public class ShopCar {
    @Schema(description = "购物车id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Schema(description = "用户id")
    private Integer userId;
    @Schema(description = "购买时间")
    private String time;
    @Schema(description = "购买数量")
    private Integer count;
    @Schema(description = "是否勾选")
    private Integer selected;
    @Schema(description = "价格")
    private Double price;
    @Schema(description = "商品id")
    private Integer productId;
    @Schema(description = "店铺id")
    private Integer shopId;
    @Schema(description = "商品规格信息")
    private String sku;
}
